﻿using System;

namespace MvcApplication5.Views.Control
{
    public partial class Head : System.Web.Mvc.ViewUserControl
    {
        public long NowTicks;

        protected void Page_Load(object sender, EventArgs e)
        {
            //取得当前时间的Ticks
            NowTicks = DateTime.Now.Ticks;
        }
        /// <summary>
        /// 防止页面js对象体重复
        /// </summary>
        /// <returns></returns>
        public string GetJSInstance()
        {
            return this.ClientID + "_" + NowTicks;
        }
    }
}